package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.AUTO_ORDER_QUERY;

import androidx.annotation.NonNull;

import com.uduew.sjd.bean.HttpBean;
import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class AutoOrderQueryingApi implements IRequestApi, IRequestType {
    private ReqAutoOrderQueryBean euhedral;

    public AutoOrderQueryingApi(ReqAutoOrderQueryBean euhedral) {
        this.euhedral = euhedral;
    }

    @NonNull
    @Override
    public String getApi() {
        return AUTO_ORDER_QUERY;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ReqAutoOrderQueryBean {
        private int coimbatore;
        private int piat;
        private ActaBean acta;
        public ReqAutoOrderQueryBean(int coimbatore, int piat, ActaBean acta) {
            this.coimbatore = coimbatore;
            this.piat = piat;
            this.acta = acta;
        }
        public static final class ActaBean {
            private String polyphyleticism;
            private String nepotistical;

            public ActaBean(String polyphyleticism, String nepotistical) {
                this.polyphyleticism = polyphyleticism;
                this.nepotistical = nepotistical;
            }
        }
    }

    public static final class ResAutoOrderQueryBean extends HttpBean {
        private MamaguyBean mamaguy;

        public MamaguyBean getMamaguy() {
            return mamaguy;
        }

        public static final class MamaguyBean{

            private int faucial;
            private int curmudgeonly;
            private int moonstone;
            private int prurience;

            private ArrayList<ThoroughBean> thorough;

            public int getFaucial() {
                return faucial;
            }

            public int getCurmudgeonly() {
                return curmudgeonly;
            }

            public int getMoonstone() {
                return moonstone;
            }

            public int getPrurience() {
                return prurience;
            }

            public ArrayList<ThoroughBean> getThorough() {
                return thorough;
            }

            public static final class ThoroughBean{
                private String beastly;
                private double nuciform;
                private String phylogenic;
                private String moldiness;
                private String irrelevant;
                private int ichneumon;
                private boolean stp;
                private String scooterist;
                private double calculator;
                private String uniformitarian;
                private long ultimatism;
                private NursingBean nursing;

                public static final class NursingBean{
                    private String giglot;
                    private String negligence;
                    private int ichneumon;
                    private double nuciform;

                    public String getGiglot() {
                        return giglot;
                    }

                    public String getNegligence() {
                        return negligence;
                    }

                    public int getIchneumon() {
                        return ichneumon;
                    }

                    public double getNuciform() {
                        return nuciform;
                    }
                }

                public String getBeastly() {
                    return beastly;
                }

                public double getNuciform() {
                    return nuciform;
                }

                public String getPhylogenic() {
                    return phylogenic;
                }

                public String getMoldiness() {
                    return moldiness;
                }

                public String getIrrelevant() {
                    return irrelevant;
                }

                public int getIchneumon() {
                    return ichneumon;
                }

                public boolean isStp() {
                    return stp;
                }

                public String getScooterist() {
                    return scooterist;
                }

                public double getCalculator() {
                    return calculator;
                }

                public String getUniformitarian() {
                    return uniformitarian;
                }

                public long getUltimatism() {
                    return ultimatism;
                }
            }
        }

    }


}

